From dd0df64031ca0f42334d51cadb4b1444e5e1a28a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Steinbrink?= Date: Tue, 5 Aug 2014 12:24:17 +0200 Subject: [PATCH] Fix running tests using git on systems with customized git templates I customized my git repo template to default to the standard pre-commit hook that checks for e.g. trailing whitespace and refuses to commit if any trailing whitespace was found. This causes some of cargo's tests to fail. To be independent of the user's git template, create the repo for the test without using any, by specifying an empty template. --- tests/test_cargo_compile_git_deps.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cargo_compile_git_deps.rs b/tests/test_cargo_compile_git_deps.rs index 3afbfe366..0aea6702c 100644 --- a/tests/test_cargo_compile_git_deps.rs +++ b/tests/test_cargo_compile_git_deps.rs @@ -30,7 +30,7 @@ fn git_repo(name: &str, callback: |ProjectBuilder| -> ProjectBuilder) git_project.build(); log!(5, "git init"); - try!(git_project.process("git").args(["init"]).exec_with_output()); + try!(git_project.process("git").args(["init", "--template="]).exec_with_output()); log!(5, "building git project"); log!(5, "git add ."); try!(git_project.process("git").args(["add", "."]).exec_with_output()); -- 2.30.2